import request from '@/utils/request'

// 查询核酸任务超时CRUD列表
export function listNucieic(query) {
  return request({
    url: '/tasks/nucieic/list',
    method: 'get',
    params: query
  })
}

// 查询核酸任务超时CRUD详细
export function getNucieic(id) {
  return request({
    url: '/tasks/nucieic/' + id,
    method: 'get'
  })
}

// 新增核酸任务超时CRUD
export function addNucieic(data) {
  return request({
    url: '/tasks/nucieic',
    method: 'post',
    data: data
  })
}

// 修改核酸任务超时CRUD
export function updateNucieic(data) {
  return request({
    url: '/tasks/nucieic',
    method: 'put',
    data: data
  })
}

// 删除核酸任务超时CRUD
export function delNucieic(id) {
  return request({
    url: '/tasks/nucieic/' + id,
    method: 'delete'
  })
}
